Migrate Jenkins CI/CD Pipelines to GitHub Actions#98
Open
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
Open
Migrate Jenkins CI/CD Pipelines to GitHub Actions#98devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
Conversation
Co-Authored-By: Angela Lin <angela.lin@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two GitHub Actions workflow files (
.github/workflows/ci.ymland.github/workflows/cd.yml) to replace the existing Jenkins pipelines (JenkinsfileandGitOps/Jenkinsfile).CI workflow (
ci.yml): Triggers on push toDevOpsor manual dispatch. Runs Trivy filesystem scan, OWASP dependency check, SonarQube analysis + quality gate, builds/pushes Docker image tomadhupdevops/bankapp, uploads OWASP XML artifacts, and triggers the CD workflow on success.CD workflow (
cd.yml): Triggered viaworkflow_dispatchfrom CI. Updates the image tag inkubernetes/bankapp-deployment.yamlusingsed, commits/pushes back toDevOps, and sends an HTML email notification.Review & Testing Checklist for Human
SONAR_TOKEN,SONAR_HOST_URL,DOCKERHUB_USERNAME,DOCKERHUB_TOKEN,GH_PAT,EMAIL_USERNAME,EMAIL_PASSWORD. Workflows will fail without these.madhupdevops/bankappbut CD'ssedupdatestrainwithshubham/bankapp-eksin the K8s manifest. This mirrors the original Jenkins behavior but means CI and CD reference different image repos.sedproduces no diff: If the tag already matches,git commitwill exit non-zero with "nothing to commit". Consider whether a guard (git diff --quiet || git commit ...) is needed.docker_tag. Confirm CI completes, triggers CD, CD updates the manifest, and email is received.GH_PATpermissions: The PAT needsrepoandactions:writescopes to both trigger the CD workflow dispatch and push commits back toDevOps.Notes
JenkinsfileandGitOps/Jenkinsfileare not removed in this PR.aquasecurity/trivy-action@masterandSonarSource/sonarqube-scan-action@masteruse floating@mastertags per the spec — consider pinning to SHA or release tags for supply chain safety.Link to Devin run: https://app.devin.ai/sessions/4dc347fcc128470bbc6bcb10e54ce038
Requested by: @angelalincog